package model.db.table;

import java.sql.Date;
import java.sql.Time;

/**
 * Author: Raoux Etienne
 * Student login: jc218934
 * Student number: 12448190
 * email: etienne.raoux@my.jcu.edu.au
 * alt email: jc218934@gmail.com
 */
public class Bid
{
    private final Date date;
    private final String bidder;
    private final String bidType;
    private final String qty;
    private final String amt;
    public Bid(Date date, String bidder, String bidType, String qty, String amt)
    {
        this.date = date;
        this.bidder = bidder;
        this.bidType = bidType;
        this.qty = qty;
        this.amt = amt;

    }

    public String toString()
    {
        return "Bid "+bidType +" bidder = "+bidder+" date "+date+" time "+new Time (date.getTime())+" qty "+qty+" Price "+amt+"\n";
    }
}
